import { Navigate, useNavigate, useLocation } from "react-router-dom";

export const AuthRouter = (props) => {
  const { pathname } = useLocation();
  // if (pathname !== "/page1") {
  //   return <Navigate to='/page1' replace />;
  // }
  return props.children;
};
